cmake_minimum_required(VERSION 3.10)

BLUETOOTH_CHAT_INCLUDE_LIBS()
BLUETOOTH_CHAT_INCLUDE_UTILS()

file(GLOB_RECURSE UTILS_SOURCES "*.cpp")
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
	if (MSVC)
		add_library(utils STATIC ${UTILS_SOURCES})
	else()
		add_library(utils SHARED ${UTILS_SOURCES})
	endif()
else()
	add_library(utils SHARED ${UTILS_SOURCES})
endif()
target_link_options(utils PRIVATE -fPIC)